package com.allinpay.merchantweb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.web.client.RestTemplate;
@SpringBootApplication  
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 30*10,redisNamespace="merchantweb")
public class ServiceMerchantWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceMerchantWebApplication.class, args);
    }
    @Bean
  	public RestTemplate restTemplate() {
  		return new RestTemplate();
  	}
}
